using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DTO;
using DAL;
using BUS;
using Utility;
public partial class User_User_DangKy : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        KhachHang_DTO khachhang = new KhachHang_DTO();
        khachhang.HoTen = txthoten.Text;
        khachhang.MaLoai_NguoiDung = 1;
        khachhang.MatKhau = txtmatkhau.Text;
        khachhang.HinhAnh = "no_images.jpg";
        khachhang.DiaChi = txtdiachi.Text;
        khachhang.Email = txtemailkhachhang.Text;
        khachhang.DienThoai = txtdienthoai.Text;
        if(rd_nam.Checked==true)
        {
            khachhang.GioiTinh = true;
        }
        else
        {
            khachhang.GioiTinh = false;
        }
        KHACHHANG_BUS.insert(khachhang);
    }
}
